package company.autocomplete;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author avbravo
 */
@ManagedBean(name = "company_autoCompleteBeans")
@ViewScoped
public class Beans {

    private company.general.Beans generalBeans = new company.general.Beans();
    public Beans() {
    }
    public Beans(Integer id, String nombre, String direccion, String telefono, String contacto) {
        generalBeans.setId(id);
        generalBeans.setNombre(nombre);
        generalBeans.setDireccion(direccion);
        generalBeans.setTelefono(telefono);
        generalBeans.setContacto(contacto);
    }

    private String strScape(String str) {
        str = str.trim();
        str = str.replace("'", "''");
        str = str.replace("\\", "\\\\");
        return str;
    }

    /**
     * @return the generalBeans
     */
    public company.general.Beans getGeneralBeans() {
        return generalBeans;
    }

    /**
     * @param generalBeans the generalBeans to set
     */
    public void setGeneralBeans(company.general.Beans generalBeans) {
        this.generalBeans = generalBeans;
    }

    
}
